package com.laolang.shop.modules.sys.pojo.vo;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author khlbat
 * @version 1.0
 * @date 2020/11/1 20:46
 */
@Data
public class SysUserInfoVo {

    private UserInfo userInfo;

    private List<Role> roleList;

    private List<Menu> menuList;

    @Accessors(chain = true)
    @Data
    public static class UserInfo {
        private Long userId;
        private Long tenantId;
        private String nickname;
        private String avatar;
    }

    @Accessors(chain = true)
    @Data
    public static class Menu {
        private Long id;
        private Long parentId;
        private String name;
        private String url;
        private String code;
        private Integer sort;
        private List<Menu> children;
    }

    @Accessors(chain = true)
    @Data
    public static class Role {
        private Long id;
        private String code;
    }
}
